Skip to main content

Delete Bucket Policy

AutomatR.AWS.DeleteBucketPolicy

The "Delete Bucket Policy" activity in AutomatR is part of the AWS S3 (Simple Storage Service) activities package, allowing automation processes to delete the ongoing bucket policy associated with an S3 bucket within Amazon Web Services (AWS). This activity streamlines the process of managing bucket policies, enhancing the efficiency of automation workflows.

Properties

NameDescription
Input
Access Key IDProvides the encrypted access key ID for your AWS account, enabling connection to the AWS S3 service. String variables containing the access key ID.
Secret Access KeyProvides the encrypted secret access key for your AWS account, enabling connection to the AWS S3 service. String variables containing the secret access key.
RegionSpecifies the AWS region where the S3 bucket with the policy is located. Use the RegionEndpoint enumeration to set the region.
Bucket NameSpecifies the name of the S3 bucket for which the bucket policy will be deleted. String variables containing the bucket name.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Delete Bucket Policy" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the wait time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Delete Bucket Policy" activity onto the workflow.
  2. Configure the properties by providing the required inputs, such as access key ID, secret access key, region, and bucket name.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to delete the ongoing bucket policy associated with the specified S3 bucket within AWS.

Example: Consider an example where the "Delete Bucket Policy" activity is used to remove the policy from an S3 bucket named "MyDataBucket" located in the "us-west-2" region:

Delete Bucket Policy:
Display Name: "Delete Policy from MyDataBucket"
Access Key ID: "**************"
Secret Access Key: "**************"
Region: "us-west-2"
Bucket Name: "MyDataBucket"

In this example, the activity deletes the ongoing bucket policy associated with the S3 bucket named "MyDataBucket" in the "us-west-2" region.